package com.doufeng.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("df_base_role")
public class Role {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String roleName;
    private String roleKey;   // ROLE_XXX
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}